using System;

namespace UserManagement
{
    /// <summary>
    /// 登录记录实体类
    /// </summary>
    public class LoginRecord
    {
        /// <summary>
        /// ID
        /// </summary>
        public Guid Id { get; set; }
        
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }
        
        /// <summary>
        /// 凭据
        /// </summary>
        public string Token { get; set; }
        
        /// <summary>
        /// 是否有效
        /// </summary>
        public bool IsValid { get; set; }
        
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime Expiry { get; set; }
        
        /// <summary>
        /// 登录日期
        /// </summary>
        public DateTime LoginTime { get; set; }
    }
}
